{"ast":null,"code":"import * as React from 'react';\nimport { MenuContext } from \"../context/MenuContext\";\nexport default function useDirectionStyle(level) {\n  var _React$useContext = React.useContext(MenuContext),\n    mode = _React$useContext.mode,\n    rtl = _React$useContext.rtl,\n    inlineIndent = _React$useContext.inlineIndent;\n  if (mode !== 'inline') {\n    return null;\n  }\n  var len = level;\n  return rtl ? {\n    paddingRight: len * inlineIndent\n  } : {\n    paddingLeft: len * inlineIndent\n  };\n}","map":{"version":3,"names":["React","MenuContext","useDirectionStyle","level","_React$useContext","useContext","mode","rtl","inlineIndent","len","paddingRight","paddingLeft"],"sources":["/data/messenger.client/node_modules/rc-menu/es/hooks/useDirectionStyle.js"],"sourcesContent":["import * as React from 'react';\nimport { MenuContext } from \"../context/MenuContext\";\nexport default function useDirectionStyle(level) {\n  var _React$useContext = React.useContext(MenuContext),\n      mode = _React$useContext.mode,\n      rtl = _React$useContext.rtl,\n      inlineIndent = _React$useContext.inlineIndent;\n\n  if (mode !== 'inline') {\n    return null;\n  }\n\n  var len = level;\n  return rtl ? {\n    paddingRight: len * inlineIndent\n  } : {\n    paddingLeft: len * inlineIndent\n  };\n}"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,wBAAwB;AACpD,eAAe,SAASC,iBAAiB,CAACC,KAAK,EAAE;EAC/C,IAAIC,iBAAiB,GAAGJ,KAAK,CAACK,UAAU,CAACJ,WAAW,CAAC;IACjDK,IAAI,GAAGF,iBAAiB,CAACE,IAAI;IAC7BC,GAAG,GAAGH,iBAAiB,CAACG,GAAG;IAC3BC,YAAY,GAAGJ,iBAAiB,CAACI,YAAY;EAEjD,IAAIF,IAAI,KAAK,QAAQ,EAAE;IACrB,OAAO,IAAI;EACb;EAEA,IAAIG,GAAG,GAAGN,KAAK;EACf,OAAOI,GAAG,GAAG;IACXG,YAAY,EAAED,GAAG,GAAGD;EACtB,CAAC,GAAG;IACFG,WAAW,EAAEF,GAAG,GAAGD;EACrB,CAAC;AACH"},"metadata":{},"sourceType":"module"}